package com.wkq.util.socket

import org.java_websocket.handshake.ServerHandshake

/**
 *
 *@Author: wkq
 *
 *@Time: 2025/5/29 12:00
 *
 *@Desc:
 */
interface SocketListener {
    fun onOpen(serverHandshake: ServerHandshake?)
    fun onMessage(message: String?)
    fun onClose(code: Int, reason: String?, remote: Boolean)
    fun onError(ex: String?)
    fun onStateChange(state: WebSocketState)

}